import 'package:trollee/app/core/http/http.dart';
import 'package:trollee/app/data/entities/basic/news_entity.dart';

abstract class BaseApi {

  // 环保资讯
  static HttpRequest<NewsEntity> getNews({int num = 10, int page = 1, String? word}) {
    return HttpUtil().generateGetRequest('huanbao/index', queryParameters: {
      'key': 'a69400da230d90d3d4ed644b6d3d1fb7',
      'num': num,
      'page': page,
      // 'word': word,
    });
  }

}
